package com.candy.service.impl;

import com.candy.dao.AccountDao;
import com.candy.dao.impl.AccountDaoImpl;
import com.candy.service.AccountService;

public class AccountServiceImpl implements AccountService {
    AccountDao accountDao=new AccountDaoImpl();

    public AccountServiceImpl() {
        System.out.println("创建对象");
    }

    public AccountServiceImpl(AccountDao accountDao) {
        this.accountDao = accountDao;
    }

    @Override
    public void saveAccount() {
        accountDao.saveAccont();
    }
}
